#pragma once

class PiecePosition 
{
public:
	PiecePosition():X(0),Y(0),isSet(false){}
	PiecePosition(int x, int y){Set(x,y);}
	
	void Clear() 
	{
		isSet = false;
		X=0;
		Y=0;
	}
	
	void Set(int x, int y)
	{
		isSet = true;
		X = x;
		Y = y;
	}

	bool IsSet()
	{
		return isSet;
	}

	int GetX() { return X;}
	int GetY() { return Y;}

    bool operator==(PiecePosition &obj)
	{
		return (obj.GetX() == X && obj.GetY() == Y);
	}

private:
	bool isSet;
	int X;
	int Y;
};
